        <link rel="stylesheet" type="text/css" href="<?php echo base_url()?>/public/assets/css/lesson.css">
        
        <a href="javascript:void(0);" class="weui_media_box weui_media_appmsg">
            <div class="weui_media_hd">
                <img class="weui_media_appmsg_thumb" src="<?php echo $book_info['book_logo']?>" alt="">
            </div>
            <div class="weui_media_bd">
                <h4 class="weui_media_title"><?php echo $book_info['book_title']?></h4>
                
            </div>
        </a>
        <a class="weui_cell" href="javascript:;">
            <div class="weui_cell_hd"><img src="<?php echo $book_info['teacher_avatar']?>" alt="" style="width:40px;margin-right:5px;display:block"></div>
            <div class="weui_cell_bd weui_cell_primary">
                <p><?php echo $book_info['teacher_name']?></p>
            </div>
            
        </a>
        <div class="weui_cells">
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
                    <p>订单编号：</p>
                </div>
                <div class="weui_cell_ft"><a href="javascript:void(0);" style="color:#918f8f;"><?php echo id_encode($book_info['order_id'])?></a></div>
            </div>
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
                    <p>预约编号：</p>
                </div>
                <div class="weui_cell_ft"><a href="javascript:void(0);" style="color:#918f8f;"><?php echo id_encode($book_info['book_id'])?></a></div>
            </div>
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
                    <p>预约状态：</p>
                </div>
                <div class="weui_cell_ft"><?php echo $type[$book_info['status']]?></div>
            </div>
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
                    <p>对应课包：</p>
                </div>
                <div class="weui_cell_ft"><?php echo $book_info['book_title']?></div>
            </div>
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
                    <p>上课时间：</p>
                </div>
                <div class="weui_cell_ft"><?php echo $book_info['book_date']?>（<?php echo $weekArr[date('w',strtotime($book_info['book_date']))]?>）<?php echo $book_info['book_date_start']?></div>
            </div>
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
                    <p>上课课时：</p>
                </div>
                <div class="weui_cell_ft">1</div>
            </div>
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
                    <p>上课地点：</p>
                </div>
                <div class="weui_cell_ft"><?php echo $book_info['address']?></div>
            </div>
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
                    <p>备注：</p>
                </div>
                <div class="weui_cell_ft"><?php echo $book_info['message']?></div>
            </div>
            
            <?php if($book_info['evaluate']){?>
            <div class="weui_media_box weui_media_text" style="margin-top: 20px;">
                <h4 class="weui_media_title">评价信息</h4>
            </div>
            <div class="weui_media_box weui_media_text">
                <?php foreach ($book_info['evaluate'] as $val){?>
                    <h4 class="weui_media_title" style="color: #FFC926">
                        <?php for($i=1;$i<=5;$i++){?>
                        <i class="fa fa-star <?php if($i>$val['star'])echo 'fa-star-o'?>"></i>
                        <?php }?>
                        <em><?php echo $val['create_date']?></em>
                    </h4>
                    <p class="weui_media_desc"><?php echo $val['message']?></p>
                <?php }?>
            </div>
            <?php }?>
            
        </div>
        
        
        
        <?php if($book_info['status'] == 1 || $book_info['status'] == 6){?>
        <a href="javascript:classover(<?php echo $book_info['book_id']?>);" class="weui_btn weui_btn_plain_default">确认下课</a>
        <?php }?>
        <?php if($book_info['status'] == 0){?>
        <a href="javascript:classcancel(<?php echo $book_info['book_id']?>);" class="weui_btn weui_btn_plain_primary">取消预约</a>
        <?php }?>
            <!--确认下课-->
        <!--确认取消-->
        <div class="weui_dialog_confirm" id="dialog1" style="display: none;">
            <div class="weui_mask"></div>
            <div class="weui_dialog">
                <div class="weui_dialog_hd"><strong id='dialog1_content' class="weui_dialog_title"></strong></div>
                <div class="weui_dialog_ft">
                    <a href="javascript:$('#dialog1').hide();" class="weui_btn_dialog default">取消</a>
                    <a href="javascript:;" id="dialog1_a" class="weui_btn_dialog primary">确定</a>
                </div>
            </div>
        </div>
            <script type="text/javascript">
        //取消预约
        function classcancel(book_id){
            $('#dialog1_content').html('确定取消预约吗？');
            $('#dialog1_a').attr('href','/courserecord/classcancel?book_id='+book_id);
            $('#dialog1').show();
        }
        //下课
        function classover(book_id){
            $('#dialog1_content').html('已经上完课了吗？');
            $('#dialog1_a').attr('href','/courserecord/classover?book_id='+book_id);
            $('#dialog1').show();
        }
    </script>
